<!--

     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
     distributed with this work for additional information
     regarding copyright ownership.  The ASF licenses this file
     to you under the Apache License, Version 2.0 (the
     "License"); you may not use this file except in compliance
     with the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing,
     software distributed under the License is distributed on an
     "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
     KIND, either express or implied.  See the License for the
     specific language governing permissions and limitations
     under the License.

-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- **************************************************************** -->
<!-- *  PLEASE KEEP COMPLICATED EXPRESSIONS OUT OF THESE TEMPLATES, * -->
<!-- *  i.e. only iterate & print data where possible. Thanks, Jez. * -->
<!-- **************************************************************** -->

<html>
<head>
    <!-- Generated by groovydoc (2.4.7) on Thu Dec 01 22:36:12 PST 2016 -->
    <title>UserFacade (Moqui Framework 2.0.0)</title>
    <meta name="date" content="2016-12-01">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="../../../groovy.ico" type="image/x-icon" rel="shortcut icon">
    <link href="../../../groovy.ico" type="image/x-icon" rel="icon">
    <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">

<body class="center">
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
    parent.document.title="UserFacade (Moqui Framework 2.0.0)";
}
//-->
</script>
<noscript>
    <div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
    <!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/context/UserFacade" target="_top">Frames</a></li>
            <li><a href="UserFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <a name="skip-navbar_top">
        <!--   -->
    </a></div>
<!-- ========= END OF TOP NAVBAR ========= -->

<!-- ======== START OF CLASS DATA ======== -->
<div class="header">

    <div class="subTitle">Package: <strong>org.moqui.context</strong></div>

    <h2 title="[Java] Interface UserFacade" class="title">[Java] Interface UserFacade</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">

</ul>
<div class="description">
    <ul class="blockList">
        <li class="blockList">


    <p> For information about the user and user preferences (including locale, time zone, currency, etc). </p>

          </li>
    </ul>
</div>

<div class="summary">
    <ul class="blockList">
        <li class="blockList">
        <!-- =========== NESTED CLASS SUMMARY =========== -->
        

        <!-- =========== ENUM CONSTANT SUMMARY =========== -->
        
        <!-- =========== FIELD SUMMARY =========== -->
        

        <!-- =========== PROPERTY SUMMARY =========== -->
        

        <!-- =========== ELEMENT SUMMARY =========== -->
        

        

        
        <!-- ========== METHOD SUMMARY =========== -->
        <ul class="blockList">
            
            <li class="blockList"><a name="method_summary"><!--   --></a>
                    <h3>Methods Summary</h3>
                    <ul class="blockList">
                    <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Methods Summary table">
                        <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
                        <tr>
                            <th class="colFirst" scope="col">Type</th>
                            <th class="colLast" scope="col">Name and description</th>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getContext()">getContext</a></strong>()</code><br>A per-user context like the execution context for but data specific to a user and maintained through service
 calls, etc unlike ExecutionContext.getContext(). </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getCurrencyUomId()">getCurrencyUomId</a></strong>()</code><br>@return String The active ISO currency code from user preference or system default.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Locale</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getLocale()">getLocale</a></strong>()</code><br>@return Locale The active Locale from user preference or system default.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getLoginKey()">getLoginKey</a></strong>()</code><br>Get a login key for the active user.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Calendar</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getNowCalendar()">getNowCalendar</a></strong>()</code><br>Get a Calendar object with user's TimeZone and Locale set, and set to same time as returned by getNowTimestamp().</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.sql.Timestamp</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getNowTimestamp()">getNowTimestamp</a></strong>()</code><br>Get the current date and time in a Timestamp object. </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.List&lt;java.sql.Timestamp&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getPeriodRange(java.lang.String, java.lang.String)">getPeriodRange</a></strong>(java.lang.String period, java.lang.String poffset)</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getPreference(java.lang.String)">getPreference</a></strong>(java.lang.String preferenceKey)</code><br>Get the value of a user preference.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.TimeZone</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getTimeZone()">getTimeZone</a></strong>()</code><br>@return TimeZone The active TimeZone from user preference or system default.</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/entity/EntityValue.html'>EntityValue</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUserAccount()">getUserAccount</a></strong>()</code><br>@return EntityValue for the current active user (the moqui.security.UserAccount entity).</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.util.Set&lt;java.lang.String&gt;</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUserGroupIdSet()">getUserGroupIdSet</a></strong>()</code><br></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUserId()">getUserId</a></strong>()</code><br>@return ID of the current active user (from the moqui.security.UserAccount entity).</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getUsername()">getUsername</a></strong>()</code><br>@return Username of the current active user (NOT the UserAccount.userId, may even be a username from another system).</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code><a href='../../../org/moqui/entity/EntityValue.html'>EntityValue</a></strong></code></td>
                            <td class="colLast"><code><strong><a href="#getVisit()">getVisit</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>The current visit (aka session; from the Visit entity).</DD></DL></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getVisitId()">getVisitId</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>ID for the current visit (aka session; from the Visit entity).</DD></DL></td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>java.lang.String</strong></code></td>
                            <td class="colLast"><code><strong><a href="#getVisitUserId()">getVisitUserId</a></strong>()</code><br> <DL><DT><B>Returns:</B></DT><DD>ID of the user associated with the visit.</DD></DL></td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#hasPermission(java.lang.String)">hasPermission</a></strong>(java.lang.String userPermissionId)</code><br>Check to see if current user has the given permission. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#isInGroup(java.lang.String)">isInGroup</a></strong>(java.lang.String userGroupId)</code><br>Check to see if current user is in the given group (UserGroup). </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#loginAnonymousIfNoUser()">loginAnonymousIfNoUser</a></strong>()</code><br>If no user is logged in consider an anonymous user logged in. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#loginUser(java.lang.String, java.lang.String)">loginUser</a></strong>(java.lang.String username, java.lang.String password)</code><br>Authenticate a user and make active in this ExecutionContext (and session of WebExecutionContext if applicable).</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>boolean</strong></code></td>
                            <td class="colLast"><code><strong><a href="#loginUserKey(java.lang.String)">loginUserKey</a></strong>(java.lang.String loginKey)</code><br>Authenticate a user and make active using a login key</td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#logoutUser()">logoutUser</a></strong>()</code><br>Remove (logout) active user.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setCurrencyUomId(java.lang.String)">setCurrencyUomId</a></strong>(java.lang.String uomId)</code><br>Set the user's Time Zone. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setEffectiveTime(java.sql.Timestamp)">setEffectiveTime</a></strong>(java.sql.Timestamp effectiveTime)</code><br>Set an EffectiveTime for the current context which will then be returned from the getNowTimestamp() method.
 </td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setLocale(java.util.Locale)">setLocale</a></strong>(java.util.Locale locale)</code><br>Set the user's Locale. </td>
                        </tr>
                        
                        <tr class="rowColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setPreference(java.lang.String, java.lang.String)">setPreference</a></strong>(java.lang.String preferenceKey, java.lang.String preferenceValue)</code><br>Set the value of a user preference.</td>
                        </tr>
                        
                        <tr class="altColor">
                            <td class="colFirst"><code>void</strong></code></td>
                            <td class="colLast"><code><strong><a href="#setTimeZone(java.util.TimeZone)">setTimeZone</a></strong>(java.util.TimeZone tz)</code><br>Set the user's Time Zone. </td>
                        </tr>
                        
                    </table>
                   </ul>
              </li>
            
        </ul>
        
    </li>
    </ul>
</div>

<div class="details">
    <ul class="blockList">
        <li class="blockList">
           

            

            

            

            


            
            <!-- =========== METHOD DETAIL =========== -->
            <ul class="blockList">
                <li class="blockList"><a name="method_detail">
                    <!--   -->
                </a>
                    <h3>Method Detail</h3>
                    
                        <a name="getContext()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Map&lt;java.lang.String, java.lang.Object&gt; <strong>getContext</strong>()</h4>
                                <p> A per-user context like the execution context for but data specific to a user and maintained through service
 calls, etc unlike ExecutionContext.getContext(). Used for security data, etc such as entity filter values. </p>
                            </li>
                        </ul>
                    
                        <a name="getCurrencyUomId()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getCurrencyUomId</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>String The active ISO currency code from user preference or system default.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getLocale()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Locale <strong>getLocale</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>Locale The active Locale from user preference or system default.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getLoginKey()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getLoginKey</strong>()</h4>
                                <p> Get a login key for the active user. </p>
                            </li>
                        </ul>
                    
                        <a name="getNowCalendar()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Calendar <strong>getNowCalendar</strong>()</h4>
                                <p> Get a Calendar object with user's TimeZone and Locale set, and set to same time as returned by getNowTimestamp(). </p>
                            </li>
                        </ul>
                    
                        <a name="getNowTimestamp()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.sql.Timestamp <strong>getNowTimestamp</strong>()</h4>
                                <p> Get the current date and time in a Timestamp object. This is either the current system time, or the Effective
 Time if that has been set for this context (allowing testing of past and future system behavior).

 All internal tools and code built on the framework should treat this as the actual current time.
     <DL><DT><B>Returns:</B></DT><DD>Timestamp representing current date/time, or the values passed to setEffectiveTime().</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getPeriodRange(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.List&lt;java.sql.Timestamp&gt; <strong>getPeriodRange</strong>(java.lang.String period, java.lang.String poffset)</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getPreference(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getPreference</strong>(java.lang.String preferenceKey)</h4>
                                <p> Get the value of a user preference.
     <DL><DT><B>Returns:</B></DT><DD>The value of the preference from the UserPreference.preferenceValue field</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>preferenceKey</code> -  The key for the preference, looked up on UserPreference.preferenceKey</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getTimeZone()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.TimeZone <strong>getTimeZone</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>TimeZone The active TimeZone from user preference or system default.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getUserAccount()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/entity/EntityValue.html'>EntityValue</a> <strong>getUserAccount</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>EntityValue for the current active user (the moqui.security.UserAccount entity).</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getUserGroupIdSet()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.util.Set&lt;java.lang.String&gt; <strong>getUserGroupIdSet</strong>()</h4>
                                <p></p>
                            </li>
                        </ul>
                    
                        <a name="getUserId()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getUserId</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>ID of the current active user (from the moqui.security.UserAccount entity).</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getUsername()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getUsername</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>Username of the current active user (NOT the UserAccount.userId, may even be a username from another system).</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getVisit()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;<a href='../../../org/moqui/entity/EntityValue.html'>EntityValue</a> <strong>getVisit</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>The current visit (aka session; from the Visit entity). Depending on the artifact being executed this may be null.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getVisitId()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getVisitId</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>ID for the current visit (aka session; from the Visit entity). Depending on the artifact being executed this may be null.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="getVisitUserId()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;java.lang.String <strong>getVisitUserId</strong>()</h4>
                                <p> <DL><DT><B>Returns:</B></DT><DD>ID of the user associated with the visit. May be different from the active user ID if a service or something is run explicitly as another user.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="hasPermission(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>hasPermission</strong>(java.lang.String userPermissionId)</h4>
                                <p> Check to see if current user has the given permission. To have a permission a user must be in a group
 (UserGroupMember =&gt; UserGroup) that has the given permission (UserGroupPermission).
     <DL><DT><B>Returns:</B></DT><DD>boolean set to true if user has permission, false if not. If no user is logged in, returns false.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>userPermissionId</code> -  Permission ID for record in UserPermission or any arbitrary permission name (does
     not have to be pre-configured, ie does not have to be in the UserPermission entity's table)</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="isInGroup(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>isInGroup</strong>(java.lang.String userGroupId)</h4>
                                <p> Check to see if current user is in the given group (UserGroup). The user group concept in Moqui is similar to
 the "role" concept in many security contexts (including Apache Shiro which is used in Moqui) though that term is
 avoided because of the use of the term "role" for the Party part of the Mantle Universal Data Model.
     <DL><DT><B>Returns:</B></DT><DD>boolean set to true if user is a member of the group, false if not. If no user is logged in, returns false.</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>userGroupId</code> -  The user group ID to check against.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="loginAnonymousIfNoUser()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>loginAnonymousIfNoUser</strong>()</h4>
                                <p> If no user is logged in consider an anonymous user logged in. For internal purposes to run things that require authentication. </p>
                            </li>
                        </ul>
                    
                        <a name="loginUser(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>loginUser</strong>(java.lang.String username, java.lang.String password)</h4>
                                <p> Authenticate a user and make active in this ExecutionContext (and session of WebExecutionContext if applicable).
     <DL><DT><B>Returns:</B></DT><DD>true if user was logged in, otherwise false</DD></DL><DL><DT><B>Parameters:</B></DT><DD><code>username</code> -  An ID to match the UserAccount.username field.</DD><DD><code>password</code> -  The user's current password.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="loginUserKey(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;boolean <strong>loginUserKey</strong>(java.lang.String loginKey)</h4>
                                <p> Authenticate a user and make active using a login key </p>
                            </li>
                        </ul>
                    
                        <a name="logoutUser()"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>logoutUser</strong>()</h4>
                                <p> Remove (logout) active user. </p>
                            </li>
                        </ul>
                    
                        <a name="setCurrencyUomId(java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setCurrencyUomId</strong>(java.lang.String uomId)</h4>
                                <p> Set the user's Time Zone. This is used in this context and saved to the database for future contexts.
     <DL><DT><B>Parameters:</B></DT><DD><code>uomId</code> -  The new currency UOM ID (ISO currency code).</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setEffectiveTime(java.sql.Timestamp)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setEffectiveTime</strong>(java.sql.Timestamp effectiveTime)</h4>
                                <p> Set an EffectiveTime for the current context which will then be returned from the getNowTimestamp() method.
 This is used to test past and future behavior of applications.
     <DL><DT><B>Parameters:</B></DT><DD><code>effectiveTime</code> -  The new effective date/time. Pass in null to reset to the default of the current system time.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setLocale(java.util.Locale)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setLocale</strong>(java.util.Locale locale)</h4>
                                <p> Set the user's Locale. This is used in this context and saved to the database for future contexts.
     <DL><DT><B>Parameters:</B></DT><DD><code>locale</code> -  The new Locale.</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setPreference(java.lang.String, java.lang.String)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setPreference</strong>(java.lang.String preferenceKey, java.lang.String preferenceValue)</h4>
                                <p> Set the value of a user preference.
     <DL><DT><B>Parameters:</B></DT><DD><code>preferenceKey</code> -  The key for the preference, used to create or update a record with UserPreference.preferenceKey</DD><DD><code>preferenceValue</code> -  The value to set on the preference, set in UserPreference.preferenceValue</DD></DL></p>
                            </li>
                        </ul>
                    
                        <a name="setTimeZone(java.util.TimeZone)"><!-- --></a>
                        <ul class="blockListLast">
                            <li class="blockList">
                                <h4>public&nbsp;void <strong>setTimeZone</strong>(java.util.TimeZone tz)</h4>
                                <p> Set the user's Time Zone. This is used in this context and saved to the database for future contexts.
     <DL><DT><B>Parameters:</B></DT><DD><code>tz</code> -  The new TimeZone.</DD></DL></p>
                            </li>
                        </ul>
                    
                </li>
            </ul>
            
        </li>
    </ul>
</div>

<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
    <!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
    <!--   -->
</a>
    <ul class="navList" title="Navigation">
        <li><a href="../../../overview-summary.html">Overview</a></li>
        <li><a href="package-summary.html">Package</a></li>
        <li class="navBarCell1Rev">Class</li>
        <li><a href="../../../deprecated-list.html">Deprecated</a></li>
        <li><a href="../../../index-all.html">Index</a></li>
        <li><a href="../../../help-doc.html">Help</a></li>
    </ul>
</div>

<div class="subNav">
    <div>
        <ul class="navList">
            <li><a href="../../../index.html?org/moqui/context/UserFacade" target="_top">Frames</a></li>
            <li><a href="UserFacade.html" target="_top">No Frames</a></li>
        </ul>
    </div>
    <div>
        <ul class="subNavList">
            <li>Summary:&nbsp;</li>
            Nested&nbsp;&nbsp;&nbsp;Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_summary">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
        <ul class="subNavList">
            <li>&nbsp;|&nbsp;Detail:&nbsp;</li>
            Field&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<li><a href="#method_detail">Method</a></li>&nbsp;&nbsp;&nbsp;
        </ul>
    </div>
    <p>Groovy Documentation</p>
    <a name="skip-navbar_bottom">
        <!--   -->
    </a>
    </div>
</div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
